<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
  <head>
	<title>Image board</title>
	<style type="text/css">
	  <!--
	  body { font-family: verdana, sans-serif;} }
	  img { border:none; }
	  #hd { text-align: center; font-size: 3em; padding: .3em;}
	  #ft { text-align: center; padding: 1em; }
	  .entry { padding: 1.5em; margin-top: 1em;}
	  .reply { padding: 1em;}
	  .new { padding: 1em;}
	  .comment { padding-left: 1em; padding-top: .5em;}
	  -->
	</style>
	<link rel="stylesheet" href="/static/css/reset-fonts-grids.css" type="text/css">
	 <script language="javascript" src="/static/javascripts/cookie_utils.js"></script>
	 <script language="JavaScript" type="text/javascript">
		function get_Last_Sent_Image(  )
		{
		   lsimg=Get_Cookie( 'last_sent_image_key' )
		   lsent=Get_Cookie( 'last_sent_entry_key' )
		   if ( lsimg &&lsent){
			document.getElementById("id_last_sent_image").src="{{website_url}}"+lsimg+"?w=150&h=200"
			document.getElementById('id_last_sent_div').style.visibility = "visible";
			document.getElementById('id_parent').value = lsent;
		  }
		  return true;
		}
	</script>
  </head>
  <body onload="get_Last_Sent_Image()">
	<div id="doc" class="yui-t7">
	  <div id="bd">
		<div class="yui-gb new">
		  <div class="yui-u">
			 <div>{%if not user%}
				<a href="/login/">login</a>
			{% else %}
				hi, {{user.nickname}} | <a href="/logout/">logout</a>
			{% endif %}
		</div>

		  <form id="upload_form" action="/new/" enctype="multipart/form-data" method="post">
			<div><label for="id_url">Image Url:</label> <a href="{{url}}">{{url}}</a><input type="hidden"  name="url" id="id_url" value="{{url}}"/></div>
			<div><label for="id_comment">Comment:</label><textarea name="comment" rows="5"style="width: 100%;" id="id_comment"></textarea></div>
			<div  id='id_last_sent_div' style="visibility:hidden"><input id="id_parent" type="checkbox" name="parent" value=""/><img id="id_last_sent_image"src="" alt=""/> </div>
			<input type="hidden" name="dont_redirect" value="do not redirect" />
			<div><input type="submit" value="Submit" /></div>
		  </form>
		  </div>
		  <div class="yui-u">&nbsp;</div>
		</div>


  </body>
</html> 